package com.lovo.ssc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author lovo
 * @since 2022-07-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SysOrder extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "orderId",type = IdType.AUTO)
    private Integer orderid;

    @TableField("customerId")
    @ApiModelProperty(value = "客户ID")
    private Integer customerid;

    @ApiModelProperty(value = "订单编号")
    private String code;

    @TableField("orderState")
    @ApiModelProperty(value = "订单状态")
    private String orderstate;

    @ApiModelProperty(value = "收货地址")
    private String address;

    @ApiModelProperty(value = "订单金额")
    private Float money;

    @ApiModelProperty(value = "下单时间")
    private String time;

    @ApiModelProperty(value = "订单类型")
    private String type;

}
